package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-9 17:03:09 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbShopAudit generated by hbm2java
 */
@Entity
@Table(name = "tb_shop_audit", catalog = "shopc")
public class ShopAudit extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private int shopId;
	private int userId;
	private Boolean auditStatus;
	private String auditFailReason;
	private int operId;
	private Date updateTime;

	public ShopAudit() {
	}

	public ShopAudit(int shopId, int userId) {
		this.shopId = shopId;
		this.userId = userId;
	}

	public ShopAudit(int shopId, int userId, Boolean auditStatus,
			String auditFailReason) {
		this.shopId = shopId;
		this.userId = userId;
		this.auditStatus = auditStatus;
		this.auditFailReason = auditFailReason;
	}
	
	public ShopAudit(int shopId, int userId, Boolean auditStatus,
			String auditFailReason, int operId, Date updateTime) {
		super();
		this.shopId = shopId;
		this.userId = userId;
		this.auditStatus = auditStatus;
		this.auditFailReason = auditFailReason;
		this.operId = operId;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(generator="shopAudit-id")
	@GenericGenerator(name="shopAudit-id",strategy="assigned")
	@Column(name = "shop_id", unique = true, nullable = false)
	public int getShopId() {
		return this.shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	@Column(name = "user_id", nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name = "audit_status")
	public Boolean getAuditStatus() {
		return this.auditStatus;
	}

	public void setAuditStatus(Boolean auditStatus) {
		this.auditStatus = auditStatus;
	}

	@Column(name = "audit_fail_reason", length = 150)
	public String getAuditFailReason() {
		return this.auditFailReason;
	}

	public void setAuditFailReason(String auditFailReason) {
		this.auditFailReason = auditFailReason;
	}
	
	@Column(name = "oper_id")
	public int getOperId() {
		return operId;
	}

	public void setOperId(int operId) {
		this.operId = operId;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
